<%@ page language="java"  contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jiang's blog</title>
</head>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<body class="upload_page">
<div class="login">
    <div class="top">

        <form action="<%=basePath%>user/addUser" method="post">

            用户名:<input type="text" name="userName">

            密 码:<input type="password" name="password">

            <input type="submit" value="提交">


        </form>

      <table>
          <tr>
              <td>id</td>
              <td>${user.id}</td>
          </tr>
          <tr>
              <td>用户名</td>
              <td>${user.userName}</td>
          </tr>
          <tr>
              <td>年龄</td>
              <td>${user.age}</td>
          </tr>


      </table>


    </div>

    <div class="error"><c:if test="${errorMsg!=null }"><font color="red">${errorMsg}</font></c:if></div>
</div>
</body>

</html>